﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using Server;

namespace ServerApp
{
    /// <summary>
    /// Class that displays orderView
    /// </summary>
    [DataContract]
    public class OrderView
    {
        /// <summary>
        /// Id of the order
        /// </summary>
        [DataMember]
        public long Id { get; private set; }

        /// <summary>
        /// Status of the order
        /// </summary>
        [DataMember]
        public OrderStatus Status { get; set; }

        /// <summary>
        /// Date and time of the order creation
        /// </summary>
        [DataMember]
        public DateTime CreatedDateTime { get; set; }

        /// <summary>
        /// Price of the order
        /// </summary>
        [DataMember]
        public long Price { get; set; }

        public OrderView(long id)
        {
            Id = id;
        }
    }
}
